﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KC.ExtensionMethods;

public partial class blog : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		string url = "http://www.kconnolly.net";
		if (Request.Url.AbsoluteUri.ToLower().Contains("blog.aspx")) {
			url = Request.Url.AbsoluteUri.Substring(0, Request.Url.AbsoluteUri.ToLower().IndexOf("blog.aspx"));
			if (Request.Url.AbsoluteUri.Length > Request.Url.AbsoluteUri.IndexOf("blog.aspx") + 9)
				url += Request.Url.AbsoluteUri.Substring(Request.Url.AbsoluteUri.ToLower().IndexOf("blog.aspx") + 9);
		}
		
		Response.RedirectPermanent(url);
    }
}